package eu.scillman.net;

/**
 * The general communication protocol; it contains methods that are inherited by all the communication classes.
 * @author Jiri Waning
 */
public interface IProtocol extends Runnable {

	/**
	 * Receive data from the remote device.
	 * @return The data received from the remote device.
	 */
	public byte[] receive();
	
	/**
	 * Send data to a remote device.
	 * @param data The data that has to be send to the remote device.
	 */
	public void send(String data);
	
}
